﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class CustCreditBLL : ICustCreditBLL
    {
        private ICustCreditDAL _custCreditDAL;
        public CustCreditBLL(ICustCreditDAL dal)
        {
            _custCreditDAL = dal;
        }
        public void Add(CustCredit model)
        {
            _custCreditDAL.Add(model);
        }
        public void Update(CustCredit model)
        {
            _custCreditDAL.Update(model);
        }
        public void Delete(int id)
        {
            _custCreditDAL.Delete(id);
        }
        public CustCredit GetModel(int id)
        {
            return _custCreditDAL.GetModel(id);
        }
        public DataTable Query(string strWhere)
        {
            return _custCreditDAL.Query(strWhere);
        }
    }
}
